<?
//baza de date

define('PROJECT_SERVER',"localhost");
define('PROJECT_PORT',"3306");
define('PROJECT_USER','root');
define('PROJECT_PASSWORD', "");
define('PROJECT_DATABASE', "psihologus");
define('DSN','mysql:host=localhost;dbname=psihologus');
                                                                                

global $dbLink;
$dbLink = mysql_connect (PROJECT_SERVER, PROJECT_USER, PROJECT_PASSWORD)
                        or die ("<br><h2>Our database is temporarly unavailable.<br>Please come back in 10 minutes.<br>");
$select_db = mysql_select_db(PROJECT_DATABASE, $dbLink);
if (!$select_db) {
                echo "<br><h2>Our database is temporarly unavailable.<br>Please come back in 10 minutes.<br>";
                exit();
}



?>
